package com.dsr.dao;

import com.dsr.bean.OrderBean;
import com.dsr.bean.SaleTopBean;
import com.dsr.bean.ShopTopBean;
import com.dsr.consts.Result;
import com.dsr.entity.Orders;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * (Orders)表数据库访问层
 *
 * @author dsr
 * @since 2020-09-26
 */
public interface OrdersDao extends Mapper<Orders> {

    List<SaleTopBean> saleTop();

    List<ShopTopBean> shopTop();

    List<OrderBean> queryOrderBean(@Param("orders") Orders orders);

    void insertOrdersList ( @Param("ordersList") List<Orders> ordersList);
    Map<String,Integer> getSaleSum();
    List< Map<String,Integer>> daySum();
    List<Map<String,Object>> currentYearCount(@Param("start") Integer start,@Param("end")  Integer end);
}